package cordova.plugin.zmq.service;

/**
 * @author mj
 *         created at 2016/5/19
 */
public class Packet {
    private int id = AtomicIntegerUtil.getIncrementID();
    private byte[] data;

    public int getId() {
        return id;
    }

    public void pack(String txt) {
        txt += "\r\n";
        data = txt.getBytes();
    }

    public byte[] getPacket() {
        return data;
    }
}
